﻿using CID.Domain.Development;
using CID.Domain.Operations;

namespace CID.Domain.Persistence.Mappings.Operations
{
    public class ServerRoleMap : DescribedEntityMap<ServerRole>
    {
        public ServerRoleMap() : base()
        {
            Map(x => x.Enabled);
            HasMany<ServerAssignment>(x => x.Assignments);
            HasMany<Component>(x => x.Components).Inverse().Cascade.SaveUpdate();
        }
    }
}
